package Code;

import java.util.Random;

public class Test8 {
    public static void main(String[] args) {
        int[] arr = {2,588,888,1000,10000};

        Random random = new Random();

        for (int i = 0; i < arr.length; i++) {
            int temp = arr[i];
            int index = random.nextInt(arr.length);
            arr[i] = arr[index];
            arr[index] = temp;
        }

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
